package com.example.finalsystem.Dao;

import com.example.finalsystem.Entity.BuyList;
import org.apache.ibatis.annotations.Options;

import java.util.List;

public interface BuyListMapper {
    int deleteByPrimaryKey(Long buylistid);

    @Options(useGeneratedKeys = true, keyProperty = "buylistid", keyColumn = "buyListId")
    int    insert(BuyList record);

    int insertSelective(BuyList record);


    List<BuyList> getListOfBuyList(String dealId,int currentPage, int pageSize);
    int countBuyList(String dealId);

    BuyList selectByPrimaryKey(Long buylistid);

    int updateByPrimaryKeySelective(BuyList record);

    int updateByPrimaryKey(BuyList record);
}